Skip to content

Add React.version#205

Merged
zpao merged 1 commit intofacebook:masterfrom
sophiebits:version
Sep 11, 2013
Merged

Add React.version#205
zpao merged 1 commit intofacebook:masterfrom
sophiebits:version

Conversation

@sophiebits
Copy link
Copy Markdown
Collaborator

(Resubmitting since #200 got closed and reverted.)

getConfig needs to be a function because grunt.config.data.pkg.version isn't available at the time that grunt/config/jsx/jsx.js is required.

Test Plan:
grunt build, grunt lint, grunt test all work. After building, both react.js and react.min.js contain the version number.

@sophiebits
Copy link
Copy Markdown
Collaborator Author

Just updated based on IRC:

zpao: balpert: i'm going to make an executive decision and do your version diff, but a little differently. i think we should have a separate block which sets React.version = __VERSION__ (outside of the React= { ... })

@zpao I left the jsx config refactoring because in #200 you said "I wanted to get rid of those json files anyway." but I can get rid of it or split it out if you prefer.

getConfig needs to be a function because grunt.config.data.pkg.version isn't available at the time that grunt/config/jsx/jsx.js is required.

Test Plan:
grunt build, grunt lint, grunt test all work. After building, both react.js and react.min.js contain the version number.
@zpao
Copy link
Copy Markdown
Member

zpao commented Sep 10, 2013

👍

@benjamn Are you game to remove those config files?

@zpao
Copy link
Copy Markdown
Member

zpao commented Sep 11, 2013

And that's the sound of the buzzer you hear. Going to do this. We'll just have to keep an eye out for merge conflicts here but I don't think it'll be too much of an issue.

Wishes do come true @tomocchino...

zpao added a commit that referenced this pull request Sep 11, 2013
@zpao zpao merged commit d853bbc into facebook:master Sep 11, 2013
bvaughn pushed a commit to bvaughn/react that referenced this pull request Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants